package com.im.service.service;

import com.im.service.common.UploadResult;
import org.springframework.web.multipart.MultipartFile;

import java.io.InputStream;

/**
 * @author liuzhiqiang
 */
public interface MinioService {

    /**
     * 上传
     *
     * @param file
     * @return
     */
    UploadResult upload(MultipartFile file);

    /**
     * 获取文件流
     *
     * @param url
     * @return
     */
    InputStream getInputStream(String url);
}
